import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.shape.Ellipse;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;

public class Test extends Application {
	public void start(Stage stage) {
		Pane pane=new Pane();
		for(int i=0; i<16; i++) {
			Ellipse ellipse=new Ellipse();
			ellipse.setFill(Color.WHITE);
			ellipse.setStroke(Color.color(Math.random(),Math.random(),Math.random()));
			ellipse.setRadiusX(100);
			ellipse.setRadiusY(50);
			ellipse.centerXProperty().bind(pane.widthProperty().divide(2));
			ellipse.centerYProperty().bind(pane.heightProperty().divide(2));
			ellipse.setRotate(i * 180 / 16);

			pane.getChildren().add(ellipse);
		}

		Scene scene=new Scene(pane,300,300);

		stage.setScene(scene);
		stage.setTitle("Ellipse test");
		stage.show();
	}
}
